//
//  NSMAssetBrowserCell.h
//  BSProject
//
//  Created by nsm on 2019/11/25.
//  Copyright © 2019 beisheng. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class NSMAssetBrowserCell;

@protocol NSMAssetBrowserZoomDelegate <NSObject>
- (void)singleTapInCell:(NSMAssetBrowserCell *)cell location:(CGPoint)location;
- (void)doubleTapInCell:(NSMAssetBrowserCell *)cell location:(CGPoint)location;
- (void)longPressInCell:(NSMAssetBrowserCell *)cell;
@end

@interface NSMAssetBrowserCell : UIView
@property (nonatomic, weak) id<NSMAssetBrowserZoomDelegate> delegate;
@property(nonatomic, strong, readonly) UIScrollView *scrollView;
/** 最小缩放系数 默认0.5 */
@property(nonatomic) CGFloat minimumZoomScale;
/** 最小缩放系数 默认2.0 */
@property(nonatomic) CGFloat maximumZoomScale;

- (void)viewWillAppear;
- (void)viewDidDisappear;
@end

NS_ASSUME_NONNULL_END
